package com.df.account.scripts.user;

import com.df.account.modules.user.UserController
import com.df.base.common.GameRequestMapping
import com.df.base.common.IScript
import jdk.nashorn.internal.objects.annotations.Setter
import org.springframework.beans.factory.annotation.Autowired

/**
 * 路径命名规范：服务名/模块名/业务名
 */

@GameRequestMapping("user/login")
public class LoginScript implements IScript{


    @Autowired
    UserController userController;
    //注入rpc的引用

    @Override
    Object execute(Object... args) {
        //脚本参数应该包含：角色id
        println(123123123)
        println( userController.login())
    }

}